package com.yuan.kafkastudy;

import com.yuan.kafkastudy.consumer.KafkaConsumer1;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

import javax.annotation.Resource;

@MapperScan("com.yuan.kafkastudy.mapper")
@SpringBootApplication
@ComponentScan(basePackages = "com.yuan")
public class KafkaStudyApplication implements CommandLineRunner {

    @Resource
    private KafkaConsumer1 consumer;
    public static void main(String[] args) {
        SpringApplication.run(KafkaStudyApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        //consumer.runConsumer();
    }
}
